﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {
    import Classes.*;

    public class TReplace extends TWorldState {

        protected var m_params:Object;
        protected var m_newObject:GameObject;

        public function TReplace(_arg1:GameObject, _arg2:GameObject){
            _arg2.setId(_arg1.getId());
            this.m_params = _arg2.getSaveObject();
            this.m_newObject = _arg2;
            super(_arg2);
        }
        override public function perform():void{
            signedWorldAction("replace", this.m_params);
        }

    }
}//package Transactions 
